﻿<UserControl x:Class="Candy.ErrorInfoControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="26" d:DesignWidth="546" Height="18" >
    
    <Grid x:Name="LayoutRoot" Background="{StaticResource ControlsValidationBrush}">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <TextBlock x:Name="errotTitle" HorizontalAlignment="Left" Margin="8,4,0,4" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Center" FontFamily="Segoe UI Semibold" FontWeight="Bold" FontSize="{StaticResource ControlContentFontSize}"/>
        <HyperlinkButton Click="OnShowError" Content="..." ToolTipService.ToolTip="Details" Grid.Column="1" HorizontalAlignment="Left" Margin="4,-8,0,0" VerticalAlignment="Top" Foreground="{StaticResource Foreground}" FontWeight="Bold" FontSize="20"/>
        <Button Content="X" Click="OnClose" Grid.Column="2" HorizontalAlignment="Right" Margin="0" VerticalAlignment="Center" Foreground="{StaticResource Foreground}" FontWeight="Bold" FontSize="12"/>

    </Grid>
</UserControl>
